<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="slideshow">
        <div class="slide">
            <img src="img/狗头.jpg" alt="Image 1">
        </div>
        <div class="slide">
            <img src="img/狗都不玩.jpg" alt="Image 2">
        </div>
        <div class="slide">
            <img src="img/狗头.jpg" alt="Image 3">
        </div>
    </div>
    <style>
        .slideshow {
            width: 100%;
            height: 1080px;
            overflow: hidden;
            position: relative;
        }

        .slideshow img {
            width: 500px;
            height: 500px;
            display: flex;
            animation: slideshow 10s infinite linear;
            /* 调整动画时长和属性 */
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            animation: slideshow 5s infinite;
        }

        .slide:nth-child(1) {
            animation-delay: 0s;
        }

        .slide:nth-child(2) {
            animation-delay: 2s;
        }

        .slide:nth-child(3) {
            animation-delay: 4s;
        }

        @keyframes slideshow {
            0% {
                opacity: 0;
            }

            20% {
                opacity: 1;
            }

            33.33% {
                opacity: 1;
            }

            53.33% {
                opacity: 0;
            }

            100% {
                opacity: 0;
            }
        }
    </style>
</body>

</html>